package com.cslg.webassets.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class CommonController {
    @RequestMapping(value ="/user/{page}",method = {RequestMethod.GET})
    public String changeuserPage(@PathVariable String page)
    {
             return "/user/"+page;
    }
    @RequestMapping(value ="/admin/{page}",method = {RequestMethod.GET})
    public String changeadminPage(@PathVariable String page)
    {
        return "/admin/"+page;
    }
}
